package com.example.sale_order.entity;

import com.alibaba.fastjson.JSONArray;

import java.util.List;

/**
 * @Author: 杨宏杰
 * @QQ： 1025082421
 * @CreateTime: 2020-07-18-07-25
 * @Descirption:Order
 */
public class Order
{
    private String savingTarget;
    private String flowName;
    private String flowNameKey;
    private String nameKey;
    private String orderNum;
    private String fullOrderNum;
    private String userID;
    private String userName;
    private String flowStartTime;

    private String flowFinishTime;
    private int sendSaaSClientKey;
    private String sendSaaSClientKeyValue;
    private String returnType;
    private String rand;
    private  Object mainData;
    private Object sub1Data;

    public Object getMainData() {
        return mainData;
    }

    public void setMainData(Object mainData) {
        List<SalesOrderOAMainFactBill> salesOrder_oaMainFactBills= JSONArray.parseArray((String) mainData, SalesOrderOAMainFactBill.class);
        System.out.println(salesOrder_oaMainFactBills.get(0).getTableid());
        this.mainData = salesOrder_oaMainFactBills;
    }

    public Object getSub1Data() {
        return sub1Data;
    }

    public void setSub1Data(Object sub1Data) {
        List<SalesOrderFactBill> salesOrderFactBills= JSONArray.parseArray((String) sub1Data, SalesOrderFactBill.class);
        this.sub1Data = salesOrderFactBills;
    }

    /* public List<SalesOrderFactBill> getSub1Data() {
        return sub1Data;
    }

    public void setSub1Data(Object sub1Data) {
        List<SalesOrderFactBill> salesOrderFactBills= JSONArray.parseArray((String) sub1Data,SalesOrderFactBill.class);
        this.sub1Data = salesOrderFactBills;
    }*/

    public String getSavingTarget() {
        return savingTarget;
    }

    public void setSavingTarget(String savingTarget) {
        this.savingTarget = savingTarget;
    }

    public String getFlowName() {
        return flowName;
    }

    public void setFlowName(String flowName) {
        this.flowName = flowName;
    }

    public String getFlowNameKey() {
        return flowNameKey;
    }

    public void setFlowNameKey(String flowNameKey) {
        this.flowNameKey = flowNameKey;
    }

    public String getNameKey() {
        return nameKey;
    }

    public void setNameKey(String nameKey) {
        this.nameKey = nameKey;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getFullOrderNum() {
        return fullOrderNum;
    }

    public void setFullOrderNum(String fullOrderNum) {
        this.fullOrderNum = fullOrderNum;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }



    public int getSendSaaSClientKey() {
        return sendSaaSClientKey;
    }

    public void setSendSaaSClientKey(int sendSaaSClientKey) {
        this.sendSaaSClientKey = sendSaaSClientKey;
    }

    public String getSendSaaSClientKeyValue() {
        return sendSaaSClientKeyValue;
    }

    public void setSendSaaSClientKeyValue(String sendSaaSClientKeyValue) {
        this.sendSaaSClientKeyValue = sendSaaSClientKeyValue;
    }

    public String getReturnType() {
        return returnType;
    }

    public void setReturnType(String returnType) {
        this.returnType = returnType;
    }

    public String getFlowStartTime() {
        return flowStartTime;
    }

    public void setFlowStartTime(String flowStartTime) {
        this.flowStartTime = flowStartTime;
    }

    public String getFlowFinishTime() {
        return flowFinishTime;
    }

    public void setFlowFinishTime(String flowFinishTime) {
        this.flowFinishTime = flowFinishTime;
    }

    public String getRand() {
        return rand;
    }

    public void setRand(String rand) {
        this.rand = rand;
    }


}
